home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 4.iso
/
public
/
fax
/
src
/
port
/
ultrix
/
defs
next >
Wrap
Text File
|
1994-08-01
|
9KB
|
319 lines
# $Header: /usr/people/sam/fax/port/ultrix/RCS/defs,v 1.6 1994/03/29 01:07:43 sam Rel $
#
# FlexFAX Facsimile Software
#
# Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
# Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
#
# Permission to use, copy, modify, distribute, and sell this software and
# its documentation for any purpose is hereby granted without fee, provided
# that (i) the above copyright notices and this permission notice appear in
# all copies of the software and related documentation, and (ii) the names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Sam Leffler and Silicon Graphics.
#
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
#
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#
#
# These definitions are for building the software on a Dec/ultrix system
# using gcc 2.4.5 and libg++-2.4
#
# TARGET: ultrix
# COMPILER: gcc
#
SHELL = /bin/bash
DESTDIR = .
NULL =
MAKEFILE= Makefile
#
# Location of auxiliary stuff needed
#
PORT = ${DEPTH}/port/ultrix
GENERIC = ${DEPTH}/port/generic
#
# Basic tools used in the build process.
#
C++ = /usr/local/bin/g++
CC = /usr/local/bin/gcc
NAWK = /bin/awk
INSTALL = bash ${PORT}/install.sh
MKDEPEND= bash ${GENERIC}/mkdepend
AR = /bin/ar
RANLIB = /usr/bin/ranlib
SED = /bin/sed
#
# AR options for creating/updating an archive
#
AROPTS= crl
#
# Special options for lptops compilation (yech).
#
LPTOPSLCOPTS=
#
# ultrix execs getty to do the work.
#
SYSGETTY=GettyBSD.c++
#
# ultrix wants SYSV-style UUCP lock support.
#
UUCP_LOCKDIR=/var/spool/uucp
UUCP_LOCKTYPE=0
UUCP_LOCKMODE=0644
#
# Location of Adobe Font Metrics for lptops.
#
AFMDIR=/usr/local/lib/afm
#
# PostScript imager for server. PSPACKAGE is one of:
#
# dps for Display Postscript
# gs for Ghostscript
#
# and PSIMAGER is the pathname of the binary executable.
#
PSPACKAGE=gs
PSIMAGER=/usr/local/bin/gs
#
# Mail program sending notification messages.
#
FAX_MAILCMD=/usr/ucb/mail
SENDMAIL=/usr/lib/sendmail
#
# Default optimizer and prototype options
#
OPTIMIZER=-g
#PROTOTYPES=-prototypes
CVERSION=-D__ANSI_CPP__
GVERSION=
C++FILE=-x c++
# default definitions for programs--overide them as desired
LIBS= ${LIBUTIL} ${LIBTIFF} ${LIBIV} ${LIBPORT}
LLDLIBS=${LIBS} ${MACHDEPLIBS}
#
# Libraries that may vary from machine to machine (especially if
# you use GNU GCC instead of AT&T C++).
#
MACHDEPLIBS=-lg++
#
# You must have v3.0 or newer of the TIFF library. If
# you already have it installed, or if you have version 3.0
# or newer of InterViews installed (which includes the TIFF
# library), you can point these to those places. Otherwise,
# you can just use the code provided here.
#
TIFF= ${DEPTH}/libtiff
LIBTIFF=${TIFF}/libtiff.a
#
# If you already have InterViews 3.0 or newer installed,
# define these to be something like:
#
#IV= /usr/include
#LIBIV= /usr/lib/libIV.a
#
# Otherwise you can just use the subset of classes used by
# the fax software and collected here in a hacked-up library.
#
IV= ${DEPTH}/iv
LIBIV= ${IV}/libivhack.a
# random utility functions and classes
UTIL= ${DEPTH}/util
LIBUTIL=${UTIL}/libfaxutil.a
LIBPORT=${PORT}/libport.a
#
# Uid&Gid for installing server stuff. Note that the server process
# proper (/usr/etc/faxd or similar) must either run setuid root or
# setuid uucp (i.e. fax and uucp must have the same uid). This is
# so that the fax server can participate in the UUCP locking scheme
# and thereby implement tty line sharing (i.e. share the same line
# and modem for both fax and data).
#
FAXUSER=uucp
FAXGROUP=uucp
#
# Directories where stuff gets placed:
#
# BIN client-directed applications
# LIBDATA client-directed application library data files
# LIBEXEC client-directed application library executables
# SPOOL spooling area for servers
# DOC non-manual documentation
# USRETC place for servers (faxd & faxd.recv)
#
BIN=/usr/local/bin
LIBDATA=/usr/local/lib/fax
LIBEXEC=/usr/local/lib/fax
SPOOL=/var/spool/fax
DOC=/usr/local/doc/flexfax
USRETC=/usr/local/etc
#
# Manual-related controls:
#
# MAN head of manual tree
# MANAPP subdirectory for stuff in BIN
# MANSYS subdirectory for server & server-related apps
# MANFILES subdirectory for file format info
# PAGEDIRT temp files to remove on clean/clobber
#
MAN =/usr/man
MANAPPS = man1
MANSYS = man8
MANFILES= man5
MANCAPP = ${CLIENTAPPS}
MANCFILE= ${CLIENTFILES:.4f=.5f}
MANSAPP = ${SERVERAPPS:.1m=.8c}
MANSFILE= ${SERVERFILES:.4f=.5f}
PAGEDIRT= ${MANCFILE} ${MANSAPP} ${MANSFILE}
.SUFFIXES: .1m .4f .5f .8c
.1m.8c:; ${SED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
.4f.5f:; ${SED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
# programs used during installation
ECHO= /bin/echo
GREP= /usr/ucb/grep
RM= /bin/rm
PWD= /bin/pwd
CHROOT= /usr/bin/chroot
#
# Definitions used by common rules.
#
COMMONRULES=${DEPTH}/rules
COMMONTARGS= clobber clean rmtargets depend
#COMMONTARGS= clobber clean rmtargets depend incdepend
#
# C compiler flags are composed of variable (set on the command line),
# local (defined in the makefile), and global (defined in this file)
# parts, in that order. This ordering is used so that variable or
# locally specified include directories are searched before the globally
# specified ones.
#
CFLAGS= ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
COPTS= ${VCOPTS} ${LCOPTS} ${GCOPTS}
CDEFS= ${VCDEFS} ${LCDEFS} ${GCDEFS}
CINCS= ${VCINCS} ${LCINCS} ${GCINCS}
GCOPTS= ${OPTIMIZER} ${PROTOTYPES}
GCDEFS=
GCINCS= -I- -I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${TIFF}
#
# C++ flags are decomposed using the same hierarchy as C flags.
#
C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
GC++OPTS=${OPTIMIZER}
GC++INCS=-I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${IV} -I${TIFF}
GC++DEFS=
#
# Loader flags, composed of library (-l's) and option parts, with
# the libraries appearing last. Both of these are divided into variable,
# local, and global parts. The composition of LDFLAGS is done in the
# other "direction" from CFLAGS so that all the -L's, that are part of
# LDOPTS, appear before any of the -l's, which are part of LDLIBS.
# Another benefit of segregating the libraries from the remaining of the
# loader options is that the libraries alone can easily be given to
# another program, e.g., lint.
#
# Notes:
# - If a program should not be linked with the shared version of libc,
# then its make file should override the setting of SHDLIBC with a
# line such as "SHDLIBC=".
#
LDFLAGS=${LDOPTS} ${LDLIBS}
LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
GLDOPTS=-L${ROOT}/usr/local/lib
GLDLIBS=${SHDLIBC}
#
# Convenient command macros that include the flags macros.
#
C++F= ${C++} ${C++FLAGS}
CCF= ${CC} ${CFLAGS}
#
# Shell script for generating make dependencies. MKDEPEND is a shorthand
# for the tool's absolute pathname. MKDEPENDC adds MKDEPCFLAGS and the -c
# mkdepend option to this. The other language's mkdepend variables try to
# include their language's name in the variable names. Unfortunately, a
# lot of makefiles already use the nondescript LMKDEPFLAGS for C language
# mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
#
MKDEPENDC++ =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
MKDEPENDC =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
MKDEPC++FLAGS =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
MKDEPCFLAGS =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
LMKDEPCFLAGS =${LMKDEPFLAGS}
GMKDEPFLAGS =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
GMKDEPC++FLAGS =${GMKDEPFLAGS} -e 's@\.c++\.o *: @\.o: @'
GMKDEPCFLAGS =${GMKDEPFLAGS}
#
# Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
# single-source programs using null suffix rules (e.g., .c:}. This option
# works for both C and C++ make depend.
#
NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
#
# MKDEPFILE is the name of the dependency database, included by rules.
#
MKDEPFILE=Makedepend
#
# CDEPFILES lists all C or cc-compiled source files that depend on header
# files computable by ${MKDEPENDC}. C++DEPFILES lists all C++ files having
# dependencies computable by ${MKDEPENDC++}.
#
C++DEPFILES=${C++FILES}
CDEPFILES=${CFILES}
DEPFILES=${C++DEPFILES} ${CDEPFILES}
#
# Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
#
INCLDIR =${ROOT}/usr/include